It's not used and nobody has documented how it's meant to work anyway.
}
if (leave)
- g_signal_emit (controller, signals[LEAVE], 0, crossing->mode);
+ g_signal_emit (controller, signals[LEAVE], 0);
g_object_freeze_notify (G_OBJECT (motion));
if (motion->is_pointer != is_pointer)
g_object_thaw_notify (G_OBJECT (motion));
if (enter)
- g_signal_emit (controller, signals[ENTER], 0, x, y, crossing->mode);
+ g_signal_emit (controller, signals[ENTER], 0, x, y);
}
static void
* @controller: the object which received the signal
* @x: coordinates of pointer location
* @y: coordinates of pointer location
- * @mode: crossing mode
*
* Signals that the pointer has entered the widget.
*/
G_SIGNAL_RUN_LAST,
0, NULL, NULL,
NULL,
- G_TYPE_NONE, 3,
+ G_TYPE_NONE, 2,
G_TYPE_DOUBLE,
- G_TYPE_DOUBLE,
- GDK_TYPE_CROSSING_MODE);
+ G_TYPE_DOUBLE);
/**
* GtkEventControllerMotion::leave:
* @controller: the object which received the signal
- * @mode: crossing mode
*
* Signals that the pointer has left the widget.
*/
G_SIGNAL_RUN_LAST,
0, NULL, NULL,
NULL,
- G_TYPE_NONE, 1,
- GDK_TYPE_CROSSING_MODE);
+ G_TYPE_NONE, 0);
/**
* GtkEventControllerMotion::motion:
double y,
gpointer user_data);
static void gtk_icon_view_leave (GtkEventController *controller,
- GdkCrossingMode mode,
gpointer user_data);
static void gtk_icon_view_button_press (GtkGestureClick *gesture,
int n_press,
}
static void
-gtk_icon_view_leave(GtkEventController *controller,
- GdkCrossingMode mode,
- gpointer user_data)
+gtk_icon_view_leave (GtkEventController *controller,
+ gpointer user_data)
{
GtkIconView *icon_view;
GtkIconViewPrivate *priv;
double y,
gpointer data);
static void gtk_label_leave (GtkEventControllerMotion *controller,
- GdkCrossingMode mode,
gpointer data);
static gboolean gtk_label_grab_focus (GtkWidget *widget);
static void
gtk_label_leave (GtkEventControllerMotion *controller,
- GdkCrossingMode mode,
gpointer data)
{
GtkLabel *self = GTK_LABEL (data);
static void
leave_cb (GtkEventController *controller,
- GdkCrossingMode mode,
gpointer data)
{
GtkWidget *target;
target = gtk_event_controller_get_widget (controller);
- if (mode == GDK_CROSSING_NORMAL)
+ if (!gtk_event_controller_motion_contains_pointer (GTK_EVENT_CONTROLLER_MOTION (controller)))
gtk_popover_menu_set_active_item (GTK_POPOVER_MENU (target), NULL);
}
item_enter_cb (GtkEventController *controller,
double x,
double y,
- GdkCrossingMode mode,
gpointer data)
{
GtkWidget *target;
static void
bar_leave_cb (GtkEventController *controller,
- GdkCrossingMode mode,
gpointer data)
{
GtkWidget *target;
static void
motion_controller_leave (GtkEventController *controller,
- GdkCrossingMode mode,
GtkScrolledWindow *scrolled_window)
{
GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
enter_cb (GtkEventController *controller,
double x,
double y,
- GdkCrossingMode mode,
GtkTreePopover *popover)
{
GtkWidget *item;
static void gtk_tree_view_motion_controller_enter (GtkEventControllerMotion *controller,
double x,
double y,
- GdkCrossingMode mode,
GtkTreeView *tree_view);
static void gtk_tree_view_motion_controller_leave (GtkEventControllerMotion *controller,
- GdkCrossingMode mode,
GtkTreeView *tree_view);
static void gtk_tree_view_motion_controller_motion (GtkEventControllerMotion *controller,
double x,
gtk_tree_view_motion_controller_enter (GtkEventControllerMotion *controller,
double x,
double y,
- GdkCrossingMode mode,
GtkTreeView *tree_view)
{
GtkTreeRBTree *tree;
static void
gtk_tree_view_motion_controller_leave (GtkEventControllerMotion *controller,
- GdkCrossingMode mode,
GtkTreeView *tree_view)
{
if (tree_view->prelight_node)